<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table border="1">
    <tr>
        <th>idClient</th>
        <th>idProduit</th>
        <th width="200">date</th>
        <th>Quantité</th>
    </tr>

    <c:forEach var="commande" items="${commandes}">
        <tr>
            <td>${commande.acheteur.id}</td>
            <td>${commande.produit.reference}</td>
            <td><fmt:formatDate value="${commande.date}" pattern="dd/MM/yyyy HH:mm:ss"/></td>
            <td>${commande.quantity}</td>
        </tr>
    </c:forEach>
</table>